﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Tong;

public partial class aspnet_admin_bock_Iask_use_Cx_Iask_Old : System.Web.UI.Page
{
    /// <summary>
    /// 数据操作通用类 实例 TextData
    /// </summary> 
    public TongUse TextData = new TongUse();

    /// <summary>
    /// 系统安装绝对路径
    /// </summary>
    public string Abs_Path = TongUse.SysPath;
    /// <summary>
    /// 用户存放数据的临时表
    /// </summary>
    DataTable MyDt = new DataTable();

    /// <summary>
    /// 还原
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Page_Load(object sender, EventArgs e)
    {
        string RedirID = "";
        try
        {
            RedirID = Request.QueryString["id"].ToString();
            if (RedirID != "")
            {
                try
                {
                    TextData.SqlDataSave("update [Ask_user] set askuser_pwd='" + TextData.SHA1Sign("123456789") + "' where askuser_id = " + RedirID);

                    Response.Write("<script>alert('成功还原密码为\\r\\n123456789'); window.location.href='CX_Iask_use_Show.aspx?" + TextData.UrlData + "'</script>");

                }
                catch
                {

                }
            }

        }
        catch
        {

        }

    }
}
